<p class="Head1"><help:link Id="66507">IsDate Function [Runtime]</help:link></p>
<p class="Paragraph">Tests whether a given numeric or string expression can be converted to a <span style="font-weight:bold;">Date</span> variable.</p>
<p class="Paragraph">Expression: Any numeric or string expression to be tested. If the expression can be converted to a date the function returns <span class="T1">True</span>; otherwise <span class="T1">False</span>.</p>
<p class="P2">Example:</p>
<p class="PropText">Sub ExampleIsDate</p>
<p class="PropText">Dim sDateVar as String</p>
<p class="PropText">sDateVar = "12.12.1997"</p>
<p class="PropText">print IsDate(sDateVar) REM Returns True</p>
<p class="PropText">sDateVar = "12121997"</p>
<p class="PropText">print IsDate(sDateVar) REM Returns False</p>